<?php

include '../Classes/scheduleHandler.php';
include '../Classes/db.php';

$x=new DbConnect();
$con=$x->getConnection();

$id=$_GET['id'];
$subgr=$_GET['subgr'];
$start=$_GET['start'];
$end=$_GET['end'];
$empno=$_GET['empno'];
$class=$_GET['class'];
$days=$_GET['days'];

$sched=new ScheduleHandler();//create a new object
$sched->setConnect($con);
$schedule=$sched->scheduleUpdate($id,$subgr,$days,$start,$end,$empno,$class);
echo $schedule;

?>